package cn.xu.liteflow.components;

import com.yomahub.liteflow.core.NodeWhileComponent;
import org.springframework.stereotype.Component;

/**
 * @Author xuguofei clark2021@qq.com || WX clark_2023
 * @Date 2024/3/5
 * @Desc 条件循环组件，主要用于WHILE...DO...表达式
 **/
@Component("w")
public class WileCmp extends NodeWhileComponent {

    @Override
    public boolean processWhile() throws Exception {
        //这里根据业务去返回while的结果
        Thread.sleep(3000);
        return true;
    }
}
